/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package kz.dasm.baing;

import javax.annotation.Resource;
import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.inject.Produces;
import javax.inject.Named;
import javax.sql.DataSource;

/**
 *
 * @author Kreedmart
 */

@ApplicationScoped
public class ApplicationFactory {  

  @Resource(lookup = "java:jboss/datasources/BaingDS")
  private DataSource ds;
  
  @Produces
  public DataSource getDataSource() {
    return ds;
  }

}
